package com.ys.ylideas.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.ys.ylideas.entity.IdeaEntity;
import com.ys.ylideas.entity.IdeaHelp;

public interface IdeaService {
	List<IdeaEntity> queryForList(Map<String, Object> map);
	List<IdeaEntity> queryForIdeaList(Map<String, Object> map);
	void save(IdeaEntity ideasEntity);
	
	void update(IdeaEntity ideasEntity);
	
	void delete(Long id);
	
	void deleteBatch(Integer[] ids);
	Long[] queryForIdeaListById(Integer[] ids);
	
	String exportCreateCreativeCSV(List<String> ids);
	List<IdeaHelp> queryIdea(String keyword);
	List<IdeaHelp> queryUnitIdea(@Param("key_word") String keyword);
	
	/** 获取用户所有已上传创意id*/
	List<Long> uploadIdea(Long accountId);
	
	/** 批量更新用户已上传创意*/
	void updateBatch(List<IdeaEntity> ideas);
	
	void deleteBatchByCreateId(List<Long> creativeIds);
}
